const app = new Vue({
    el: '#app',
    data: {
        msg: 'hellooooooo',
        baseURL:'127.0.0.1:8080/',
        students: [{sno:"8888",name:'郭帅领',gender:'男',birthday:'1985-09-28',mobile:'1385554444',email:'guo@126.com',address:'安徽省宿州市砀山',index:1},
                   {sno:"2122",name:'郭丽丽',gender:'女',birthday:'2017-09-29',mobile:'1385554444',email:'guo@163.com',address:'安徽省宿州市砀山县曹庄镇',index:2}],

                   total:100,
                   currentPage:1,
                   pagesizes:10
    },

    mounted(){
      this.getStudents();
    },

    methods:{
        getStudents:function () {
                axios
                .get(this.baseURL+'students')
                .then(function (res) {
                    console.log(res);
                })
                .catch(function (err) {
                    console.log(err);
                });

        },
    },
   })

